//
//  UIViewController+Additional.h
//  RaiyiCommon
//
//  Created by zhiwei ma on 12-4-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum
{
    RYCNavigationbarButtonItem_Left,
    RYCNavigationbarButtonItem_Right
}RYCNavigationbarButtonItemType;

@interface UIViewController (Additional)

- (void)setNavigationBarButtonItemWithImage:(UIImage*)aIcon itemType:(RYCNavigationbarButtonItemType)aType bgImage:(UIImage*)aBg;
- (void)setNavigationBarButtonItemWithImage:(UIImage*)aIcon itemType:(RYCNavigationbarButtonItemType)aType;

- (void)setNavigationBarButtonItemWithTitle:(NSString*)aTitle bgImage:(UIImage*)aImage itemType:(RYCNavigationbarButtonItemType)aType;
- (void)setNavigationBarButtonItemWithTitle:(NSString*)aTitle bgImage:(UIImage*)aImage itemType:(RYCNavigationbarButtonItemType)aType useImageWidth:(BOOL) useImageWidth;
- (void)setNavigationBarButtonItemWithTitle:(NSString*)aTitle bgImage:(UIImage*)aImage itemType:(RYCNavigationbarButtonItemType)aType useTitleWidth:(BOOL) useTitleWidth;

- (void)setNavigationBarButtonItemWithTitleStytlePlain:(NSString*)aTitle itemType:(RYCNavigationbarButtonItemType)aType;

- (void)setNavigationBarButtonItemWithSystemItem:(UIBarButtonSystemItem)systemItem itemType:(RYCNavigationbarButtonItemType)aType;

- (void)setNavigationBarButtonClickableState:(BOOL)isClickable itemType:(RYCNavigationbarButtonItemType)aType;

//-----子类重载--------
- (void)navigationLeftButtonItemClicked:(id)aSender;//default is back to pre-view
- (void)navigationRightButtonItemClicked:(id)aSender;//default is noop
@end


@interface UIViewController(ewnav)
- (void)popToBelowViewController;
@end